Package edu.claflin.finder.logic
Class Node
- java.lang.Object
-
- edu.claflin.finder.logic.Node
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringidentifierThe string representing the node's unique name.
-
Constructor Summary
Constructors Constructor Description Node(java.lang.String identifier)Initializes the Node object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(Node that)Nodeduplicate()Returns a copy of this Node that is a new object in memory.booleanequals(java.lang.Object o)java.lang.StringgetIdentifier()Access method for the Node's identifier.inthashCode()java.lang.StringtoString()
-
-
-
Method Detail
-
getIdentifier
public java.lang.String getIdentifier()
Access method for the Node's identifier.- Returns:
- the String identifying the Node.
-
duplicate
public Node duplicate()
Returns a copy of this Node that is a new object in memory.- Returns:
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-